package com.example.demonet;

import android.os.Bundle;

import com.example.demonet.api.APIManager;
import com.example.demonet.app.App;
import com.sgb.net.callback.ICallBack;
import com.sgb.net.entity.BaseEntity;
import com.sgb.net.util.MToast;

import androidx.appcompat.app.AppCompatActivity;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity2main);
        // TODO: 2022/2/9 0009
        // TODO: 2022/2/9 0009
        // TODO: 2022/2/9 0009
        APIManager.getInstance().getMaterialAPI().getProcess().enqueue(new ICallBack<BaseEntity>(true, true) {
            @Override
            public void onSuccess(BaseEntity data) {
                finish();
                MToast.showLongToast(App.getApp(), "请求成功");
            }
        });
    }
}